package com.bwie.system.config;

import org.redisson.Redisson;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Junchen_N1
 * @Date 2025/5/18 16:02
 * @ClassName RedissonConfig
 * @Description TODO
 */
@Configuration
public class RedissonConfig {

    @Bean
    public Redisson redisson(){
        Config config = new Config();
        config.useSingleServer().setAddress("redis://14.103.180.211:6379").setDatabase(1);
        config.useSingleServer().setPassword("njc040528");
        return (Redisson) Redisson.create(config);
    }
}
